<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/global.css?t=1488795362026" media="all">
    <link rel="stylesheet" href="../css/layui.css?t=1488795362026">
    <script src="../js/jquery.js"></script>
</head>

<body>
    <div class="layui-layout layui-layout-admin">


        <div class="layui-header header header-demo">
            <div class="layui-main"> <a class="logo" href="/"> </a>
                <ul class="layui-nav" pc>
                    <li class="right"> <span> 用户：hippo</span><a href="/logout" class="out">退出</a> </li>
                </ul>
            </div>
        </div>



        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree site-demo-nav">
                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">基础内容管理</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/series/list">系列管理</a></dd>
                            <dd class=""><a href="/live/list">直播管理</a></dd>
                            <dd class=""><a href="/video/list">视频管理</a></dd>
                            <dd class=""><a href="/article/list">图文管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">聚合内容管理</a>
                        <dl class="layui-nav-child">

                            <dd class=""><a href="/competition/list">赛事管理</a></dd>
                            <dd class=""><a href="/organization/list">机构管理</a></dd>

                            <dd class=""><a href="/feed/list">标准列表管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">Tab管理</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/f1/article/list">F1管理</a></dd>
                            <dd class=""><a href="/ad/list">F1 Banner</a></dd>
                            <dd class=""><a href="/ad/start/list">启动屏广告</a></dd>
                            <dd class=""><a href="/f1/sorting/list">F1排序</a></dd>
                            <dd class=""><a href="/f2/sorting/list">F2-Tab1排序</a></dd>
                            <dd class=""><a href="/f2/recordSorting/list">F2-Tab2排序</a></dd>
                            <dd class="layui-this"><a href="/channel/list">F3频道管理</a></dd>
                        </dl>
                    </li>


                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">运营管理</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/review/list">评论管理</a></dd>
                            <dd class=""><a href="/user/message/home">系统消息</a></dd>
                            <dd class=""><a href="/feedback/list">用户反馈</a></dd>
                        </dl>
                    </li>


                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">统计信息</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/statistics/result/list">统计信息</a></dd>
                        </dl>
                    </li>


                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">用户管理</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/user/list">用户管理</a></dd>
                        </dl>
                    </li>


                    <li class="layui-nav-item layui-nav-itemed"><a class="javascript:;" href="javascript:;">系统管理</a>
                        <dl class="layui-nav-child">
                            <dd class=""><a href="/admin/user/list">后台帐号管理</a></dd>
                            <dd class=""><a href="/multi_app/list">App管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item" style="height: 30px; text-align: center"></li>
                </ul>
            </div>
        </div>

        <div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
            <div class="layui-body layui-tab-content site-demo site-demo-body">
                <div class="mian">
                    <div class="layui_title">
                        <a class="layui-btn" style="float: left" href="create_ad.html">+创建广告</a>
                    </div>
                    <div class="search_bar">
                        <div class="gz_search">
                            <form class="layui-form" action="/f1/article/list">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                            <label class="layui-form-label">名称</label>
                                            <div class="layui-input-inline" style="width: 180px;">
                                                    <input type="text" name="id" placeholder="请输入ID" autocomplete="off" class="layui-input"
                                                    selectid >
                                            </div>
                                    </div>
                                    <div class="layui-inline">
                                            <label class="layui-form-label">状态</label>
                                            <div class="layui-input-inline" style="width: 200px;">
                                                    <input type="text" name="id" placeholder="" autocomplete="off" class="layui-input"
                                                    selectid>
                                            </div>
                                            
                                    </div>
                                    <div class="layui-inline">
                                            <label class="layui-form-label" style="width:60px">上线时间</label>
                                            <div class="layui-input-inline" style="width: 130px;">
                                                    <input class="layui-input" name="effective_time" placeholder="自定义日期格式" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
                                                    >
                                            </div>
                                            <div class="layui-input-inline" style="width: 130px;">
                                                    <input class="layui-input" name="effective_time" placeholder="自定义日期格式" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
                                                    >
                                            </div>
                                     </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">支持平台</label>
                                        <div class="layui-input-block">
                                            <select name="city" lay-verify="required">
                                                <option value=""></option>
                                                <option value="0">北京</option>
                                                <option value="1">上海</option>
                                                <option value="2">广州</option>
                                                <option value="3">深圳</option>
                                                <option value="4">杭州</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">投放位置</label>
                                        <div class="layui-input-block">
                                            <select name="city" lay-verify="required">
                                                <option value=""></option>
                                                <option value="0">北京</option>
                                                <option value="1">上海</option>
                                                <option value="2">广州</option>
                                                <option value="3">深圳</option>
                                                <option value="4">杭州</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <button class="layui-btn">搜&nbsp;&nbsp;&nbsp;索</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table class="layui-table">
                        <colgroup>
                            <col width="100">
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col width="200">
                        </colgroup>
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>名称</th>
                                <th>投放位置</th>
                                <th>权重</th>
                                <th>支持平台</th>
                                <td>上线时间</td>
                                <td>下线时间</td>
                                <td>状态</td>
                                <td align="center">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>2016</td>
                                <td>2029</td>
                                <td>2%</td>
                                <td>56.3%</td>
                                <td>56.3%</td>
                                <td>56.3%</td>
                                <td>56.3%</td>
                                <td>56.3%</td>
                                <td align="center">
                                    <a href="#">编辑</a>
                                    <a data-ajax="json/bm.php">下线</a>
                                    <a data-ajax="json/bm.php">删除</a>
                                    <a href="#">数据</a>
                                </td>
                            </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>


        <div class="layui-footer footer footer-demo">
            <div class="layui-main">
                <p>2017 &copy; <a href="/">layui.com</a> MIT license</p>
            </div>
        </div>
        <div class="site-tree-mobile layui-hide"> <i class="layui-icon">&#xe602;</i> </div>
        <div class="site-mobile-shade"></div>
    </div>
    <script src="http://hippostatic.oss-cn-beijing.aliyuncs.com/admin/layui.js"></script>
    <script src="http://hippostatic.oss-cn-beijing.aliyuncs.com/admin/js/fun.js"></script>
    <script>
        //删除、上下线
        layui.use('layer', function(){
        var layer = layui.layer;
            $("[data-ajax]").each(function(index, element) {
                var T=$(this);
                T.click(function(){
                    var url=$(this).data("ajax")
                    layer.confirm('确认改操作?', function(index){
                    $.ajax({
                            url: url,
                            type: "get",
                            dataType: "json",
                            success: function(data) {
                                if(data.rescode==0){
                                    layer.close(index);
                                    window.location.reload();
                                   }
                            },
                            error: function(er) {
                                BackErr(er);
                            }
                        });
                    
                    }); 
                    
                })
            });
        
        }); 
    </script>





</body>

</html>